import Vue from 'vue';
import Vuex from 'vuex';

Vue.use(Vuex);

export default new Vuex.Store({
    state: {
        draggable: false,
        resizable: false
    },
    mutations: {
        //编辑
        edit(state) {
            state.draggable = true;
            state.resizable = true;
        },
        //退出编辑
        endEdit(state) {
            state.draggable = false;
            state.resizable = false;
        }
    },
    actions: {},
    modules: {}
});
